import { Message } from 'element-ui';

const toastFactory = (type) => (message) => Message({ type, message });

export const errorMessage = toastFactory('error');

export const successMessage = toastFactory('success');

export const infoMessage = toastFactory('info');
